package will.code.sougou.scel;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import java.io.IOException;
import will.code.sougou.scel.model.SougouThesaurus;
import will.code.sougou.scel.model.SougouWord;
import will.code.sougou.scel.parser.SougouScelFileParser;

/**
 *
 * @author will
 */
public class SougouScelFileParserTest {

    public static void main(String[] args) throws IOException{
        SougouScelFileParser sougouScelFileParser = new SougouScelFileParser();
        SougouThesaurus thesaurus = sougouScelFileParser.readScelFile("resources/1.scel");
        print(thesaurus);
    }

    private static void print(SougouThesaurus thesaurus) {
//        System.out.println("词库名: " + thesaurus.name);
//        System.out.println("词库类别: " + thesaurus.category);
//        System.out.println("词库描述: " + thesaurus.description);
//        System.out.println("词库示例: " + thesaurus.example);
//        for (SougouWord sw : thesaurus.swList) {
//            System.out.println("{" + sw.wordString + "," + sw.pinYinString + "," + sw.termFrequency + "}");
//        }
    }
}
